package onion.molingo2o;

import com.nostra13.universalimageloader.core.DisplayImageOptions;
import com.nostra13.universalimageloader.core.display.RoundedBitmapDisplayer;

/**
 * Created by Administrator on 2015/3/13.
 */
public class Config {
    public static final String BANGBANG_TAG="&bang#bang@";
    public static final String BASE_IMAGE_CACHE="XJONION";
    public static final String BASE_GROUP_CACHE="XJGROUP";
    public static final String IMG_IRL="";
    public static final String INTENT_PARMAS1="OnionParmas1";
    public static final String INTENT_PARMAS2="OnionParmas2";
    public static final String INTENT_PARMAS3="OnionParmas3";
    public static final String INTENT_String="OnionString";
    public static final String INTENT_BOOLEAN="OnionBoolean";
    public static final String INTENT_BACKMAIN="OnionBackMain";
    public static final String EXTRA_IMAGE_LIST="EXTRA_IMAGE_LIST";
    //   public static final String NET_BASE="http://114.215.105.202:8080";
    public static final String NET_AGENT="http://115.28.73.37:9090";
    //   public static final String NET_BASE="http://192.168.1.62:8080";
//   public static final String NET_BASE2="http://192.168.1.62:8080";
    public static final String NET_BASE="http://bangbang.ixiaojian.com";
    public static final String NET_BASE2="http://bangbang.ixiaojian.com";
    public static final String EXPKey_avatar="avatar";
    public static final String EXPKey_nickname="nickname";
    public static final String EXPKey_clickable="clickable";
    public static final String EXPKey_isShowAvatar="isShowAvatar";
    public static final String EXPKey_serial="serial";
    public static final String EXPKey_msgId="msgId";
    public static final String EXPKey_CMD_CODE="CMD_CODE";
    public static final String EXPKey_CMD_DETAIL="CMD_DETAIL";
    public static final String EXPKey_CMD_DATA="data";
    public static final String INTENT_USEID="userid";
    /**
     * 地图
     */
    public static final String INTENT_latitude="latitude";
    public static final String INTENT_longitude="longitude";
    public static final String INTENT_address="address";
    /**
     * 选择图片
     */
    public static final int SelectAblum=617;
    public static final String INTENT_IMAGECOUNT="imagecount";
    public static final int SelectImgCount=6;
    /**
     *handler的code
     */
    public static final int COMPLETE=1997;
    public static final int CANCEL=2997;
    public static final int ERROR=3997;
    public static DisplayImageOptions optionNoCache = new DisplayImageOptions.Builder()
            .showImageOnLoading(R.drawable.face01)
            .showImageForEmptyUri(R.drawable.face01)
            .showImageOnFail(R.drawable.face01)
            .considerExifParams(true)
            .build();
    public static DisplayImageOptions adOptions = new DisplayImageOptions.Builder()
            .showImageOnLoading(R.drawable.ad_default_xh)
            .showImageForEmptyUri(R.drawable.ad_default_xh)
            .showImageOnFail(R.drawable.ad_default_xh)
            .cacheInMemory(true)
            .cacheOnDisk(true)
            .considerExifParams(true)
            .displayer(new RoundedBitmapDisplayer(20))
            .build();
    public static DisplayImageOptions circleIconDefault = new DisplayImageOptions.Builder()
            .showImageOnLoading(R.drawable.icon_default)
            .showImageForEmptyUri(R.drawable.icon_default)
            .showImageOnFail(R.drawable.icon_default)
            .cacheInMemory(true)
            .cacheOnDisk(true)
            .considerExifParams(true)
//            .displayer(new RoundedBitmapDisplayer(20))
            .build();
}
